/**
 * 应用持久模块
 */
define('store/SchedulerStore', ['WxCore','siteConfig','restTemplate'], function (wxCore, siteConfig,restTemplate) {

    const module= {
        storeName: 'SchedulerStore',
        namespaced: true,
        state: {},
        mutations: {},
        actions: {
            loadList ({ state, commit }, { pageIndex, pageSize }) {
                return restTemplate.request({
                    baseURL:siteConfig.service.jobUrl,
                    url: '/job/sched',
                    params: {
                        pageIndex,
                        pageSize
                    },
                    method: 'get'
                })
            }
        }
    };
    return module;
})